Hello,
I am trying to get log entries after performing some steps on incident. The steps are as follows:
- Create incident
- Add Status Update
- Add Notes
- Add Status Update
- Add Notes
- Update title and priority
All this is performed through api.
Now, if I try to get the log entries immediately after these steps, through api by using a different user, the first log entry I am getting is of the last note that was added, that is step no. 5. Where as, it should be of the update step.
As per my knowledge, log entries are in decreasing order of their creation date. Is it not the case? Are we getting the log entries in random or some other order? Or is there any delay time here, and because I am reading the log entries immediately after the update, I can’t get the update log entry as update is not yet reflected due to the delay.
Also, the api I am using to fetch log entries:
https://api.pagerduty.com/log_entries?since=2020-06-03T13%3A35%3A29Z&total=true&offset=0
Here start time is the time before the incident was created.